package com.huyanqi.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import org.springframework.transaction.annotation.Transactional;

import com.huyanqi.core.BaseDomainObject;

@Entity
@Table(name = "s_shop")
@XmlAccessorType(XmlAccessType.FIELD)
public class Shop extends BaseDomainObject {
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
	@Column(name="s_id",nullable=false)
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long sId;

	public void setSId(Long sId) {
		this.sId = sId;
	}
	public Long getSId() {
		return sId;
	}

	@Column(name="s_name")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String sName;

	public void setSName(String sName) {
		this.sName = sName;
	}
	public String getSName() {
		return sName;
	}

	@Column(name="s_head")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String sHead;

	public void setSHead(String sHead) {
		this.sHead = sHead;
	}
	public String getSHead() {
		return sHead;
	}

	@Column(name="s_tel")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String sTel;

	public void setSTel(String sTel) {
		this.sTel = sTel;
	}
	public String getSTel() {
		return sTel;
	}

	@Column(name="s_address")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String sAddress;

	public void setSAddress(String sAddress) {
		this.sAddress = sAddress;
	}
	public String getSAddress() {
		return sAddress;
	}

	@Column(name="s_star")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private String sStar;

	public void setSStar(String sStar) {
		this.sStar = sStar;
	}
	public String getSStar() {
		return sStar;
	}

	@Column(name="s_praise")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long sPraise;

	public void setSPraise(Long sPraise) {
		this.sPraise = sPraise;
	}
	public Long getSPraise() {
		return sPraise;
	}
	
	@Transient
	private Boolean isPraise = false;

	public Boolean getIsPraise() {
		return isPraise;
	}
	public void setIsPraise(Boolean isPraise) {
		this.isPraise = isPraise;
	}
	

}